package in.muton.edushare.pages.univ;

import in.muton.edushare.wicket.models.CayenneList;
import in.muton.panels.paginator.EdushareListView;

import org.apache.wicket.PageParameters;

import com.edushare.common.constants.ApplicationConstants;
import com.edushare.common.vo.Courses;

public class UnivCourses extends UnivBase {

	public UnivCourses(PageParameters params) {
		super(params);
		CayenneList<Courses> cL = ud.getCourses();
		add(new EdushareListView<Courses>("thumbList", cL, EdushareListView.WIDE));
	}

	@Override
	public String getActivePage(PageParameters p) {
		return "UnivCourse";
	}

	@Override
	public String getPageTitle() {
		return getLoggedInUser().getCompleteUserName() + " | "
		+ getModel().getObject().getUniversityName()
		+ " | Courses | "
		+ ApplicationConstants.APPLICATION_NAME;
	}

}
